
@extends('common.header')
<head>
<!-- 1.添加meta csrf_token -->
<meta name="csrf-token" content="{{ csrf_token() }}">  
<title>赛事发表</title>
<link rel="shortcut icon" href="{{ asset('/images/favicon.ico') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('/css/person/datetimepicker.css') }}"/>
<!--<link rel="stylesheet" type="text/css" href="{{ asset('/css/person/person-center.css') }}"/>-->
<script src=" {{ asset('/js/jquery-1.9.1.min.js') }} "></script>
<script src=" {{ asset('/js/jquery.datetimepicker.full.js') }} "></script>
<style>
body{
    background: #fff;
}
a{
    text-decoration: none;
    color: #333;
}
input{
    outline: none;
}
.wrap{
    width: 1100px;
    margin: -30px auto 0 ;
    overflow: hidden;
}
.left_menu{
    float: left;
    width: 190px;
    text-align: center;
    border: 1px solid #d8dce4;
    background: #fff;
    text-decoration: none;
    margin-bottom: 125px;
}
.left_menu .menu_block{
    border-bottom: 1px solid #d8dce4;
    padding: 0;
    cursor: default;
}
.left_menu .draft{
    font-size: 14px;
    padding: 0 0 0 20px;
}
.left_menu .menu_block .menu_article{
    padding: 18px 0;
    font-size: 16px;
    color: #333;
    position: relative;
    display: block;
}
.right_main{
    float: right;
    width: 798px;
    height:auto;
    border: 1px solid #d9dde3;
    -moz-border-radius: 5px 5px 5px 5px; /* Firefox */
    -webkit-border-radius: 5px 5px 5px 5px; /* Safari 和 Chrome */
    border-radius:5px 5px 5px 5px; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */

}
.right_main .article_main{
    width: 798px;
    height:auto;
    padding-bottom: 80px;
}
.right_main .article_main .pagelet-write{
    width:796px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-bottom: 1px solid #d9dde3;

}
.right_main .article_main .pagelet-write a{
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: #333;
}
.right_main .article_main .edit_body{
    width: 800px;
    border: 0;
    text-align: center;
}
.edit_body .edit_hide{
    width: 798px;
    border-top: 1px solid #d9dde3;
}
.edit_body .edit_tit{
    width: 756px;
    border:none;
    font-size: 14px;
    line-height: 40px;
    height: 40px;
    padding:0 20px;
}
.edit_body .edit_tit1{
    border-top: none;
    font-size: 12px;
    line-height: 30px;
    height: 30px;
    border-bottom:1px solid #d4d4d4;
}
.edit_body .edit_tit2{
    height: 50px;
    line-height: 24px;
}
.edit_body .edit_main{
    /*width:800px;
    min-height: 370px;
    height: auto;*/
    position: relative;
}
.err_edit{
    width:100%;
    height: 35px;
    line-height:35px;
    text-align: left;
    padding:0 20px ;
    color: #fff;
    background: #d9534f;
    display: none;
    position: absolute;
    top: -35px;
    z-index: 9999;
}
.qb_class{
    font-size: 14px;
    margin-top: 20px;
    position: relative
}

.qb_class p{
    display: inline-block;
    margin: 10px;
}
.edit_body .edit_rele{
    width: 500px;
    height: 40px;
    position: absolute;
    left: 45%;
    /*margin-left: -250px;*/
}
.admin_main .pagelet-write{
    width:797px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    -moz-border-radius: 5px 5px 0 0; /* Firefox */
    -webkit-border-radius: 5px 5px 0 0; /* Safari 和 Chrome */
    border-radius:5px 5px 0 0; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
    background: #fff;
    padding: 0 0 0 20px;
}
.admin_main .pagelet-write a{
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: #333;
}
.admin_main .edit_body{
    width: 797px;
    height: auto;
    text-align: center;
    border: 1px solid #d4d4d4;
}
.admin_main .edit_body ul{
    margin-top: 2px;
    border-top: none;
    /*-webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);*/
}
.admin_main .edit_body ul li{
    width: 100%;
    height: 100px;
    padding: 10px 30px;
    border-bottom: 2px solid #ebeff5;
    position: relative;
}
.admin_main .edit_body ul li .admin_img{
    display: inline-block;
    width: 110px;
    height: 75px;
    float: left;
    overflow: hidden;
}
.admin_main .edit_body ul li .admin_img img{
	width:100%;
	height:100%;
}
.admin_main .edit_body ul li .admin_btn{
    width: 120px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.admin_main .edit_body ul li .admin_btn a{
    display: inline-block;
    font-size: 14px;
    margin: 0 5px;
    color: #333;
}
.admin_main .edit_body ul li .admin_btn a:hover{
    color: #d9534f;

}
.admin_main .edit_body ul li>div{
    float: left;
    height: 75px;
    width: auto;
    padding:0 20px;
    text-align: left;
}
.admin_main .edit_body ul li>div .admin_tit{
     margin-left: 20px;
 }
.admin_main .edit_body ul li>div .admin_other{
    margin-top: 10px;
    font-size: 12px;
    color: #888182;
}
.admin_main .edit_body ul li>div .admin_other i{
    display: inline-block;
    width: 2px;
    height: 12px;
    margin: 0 5px;
    background: #888182;
}
.admin_main .edit_body ul li h4:hover{
     /*color: #de1e30;*/
     font-weight: 700;
 }
.none_article{
    width: 798px;
    height: 400px;
    text-align: center;
}
.none_article img{
    width: 200px;
    height: 180px;
    display: block;
    margin: 50px auto;
}
.none_article p{
    font-size: 16px;
    display: inline-block;
}
.none_article a{
    display: inline-block;
    font-size: 16px;
    color: red;
    text-decoration: none;
}
.alert-info{
    width: 400px;
    height: 180px;
    border: 1px solid #d9dde3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    background: #fff;
    overflow: hidden;
    position: fixed;
    left: 600px;
    top: 200px;
    z-index: 9999;
    display: none;

}
.alert-info>div{
    width: 100%;
    height: 30px;
    background: #de1e30;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.alert-info p{
    font-size: 14px;
    text-align: center;
    line-height: 50px;
    color: #333;
}
.alert-info .info-succ{
    display: block;
    font-size: 24px;
}
.alert-info p a{
    color: #de1e30;
}
#alert-zhe{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 9998;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.8;
    display: none;
}


.right_main{
    margin: 0 auto;
    width: 798px;
    height:auto;
    border: 1px solid #d9dde3;
    -moz-border-radius: 5px 5px 5px 5px; /* Firefox */
    -webkit-border-radius: 5px 5px 5px 5px; /* Safari 和 Chrome */
    border-radius:5px 5px 5px 5px; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */

}
.change_main{
    float: right;
    width: 798px;
    min-height: 550px;
    height: auto;
    border: 1px solid #d9dde3;
    padding-top: 20px;
}
.change_main .tab-tit{
    display: block;
    width: 100%;
    height: 36px;
    background: #f0f0f3;
    border-bottom: solid 1px #eee;
    margin-top: -20px;
}

.change_main .tab-tit a{
    display: block;
    width: 198px;
    height: 35px;
    float: left;
    color: #999;
    font-size: 14px;
    line-height: 34px;
    text-align: center;
}
.change_main .tab-tit a.active{
    background:#de1e30 ;
    color: #fff;
}
.change_main  .tab-tit a.current-info{
    /*border-top: 2px solid #de1e30;*/
    color: #de1e30;
    background: #fff;
}
.grid-info{
    padding-top: 50px;
    padding-left: 100px;
    height: 550px;
    display: none;
}
.current-grid{
    display: block;
}

.grid-info .person-info-l{
    display: block;
    width: 130px;
    height: 170px;
    margin-left: 100px;
    float: left;
}
.grid-info .person-info-l .head{
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 5px solid #eee;
    overflow: hidden;
    text-align: center;
}
.grid-info .person-info-l .head img{
    height: 100%;
    width: 100%;
	
}
.grid-info .person-info-l .setbox{
    font-size: 14px;
    text-align: left;
    text-indent: 20px;
    line-height: 30px;
    margin-top: 10px;
    margin-left: 20px;
    display: inline-block;
    width: 60px;
    height: 30px;
    color: #999;
    position: relative;
}
.grid-info .person-info-l .setbox i{
    background-image: url("images/sprite-personal-center.png");
    background-position: -254px -197px;
    position: absolute;
    top: 5px;
    left: 0;
    width: 17px;
    height: 17px;
    display: inline-block;
}
.grid-info .person-info-r{
    width: 450px;
    height: 400px;
    float: left;
}
.grid-info .person-info-l .user-name{
    font-size: 20px;
    color: #333;
    text-align: center;
    display: block;
    margin-top: 10px;
}
.grid-info .person-info-r .base-info-form{
    position: relative;
    margin-left: 0;
}
.grid-info .person-info-r .base-info-form p{
    width: 550px;
    height: 40px;
    margin-bottom: 30px;
    position: relative;
}
.grid-info .person-info-r .base-info-form p i{
    float: left;
    background-image: url("images/sprite-personal-center.png");
    width: 40px;
    height: 40px;
    position: absolute;
}
.grid-info .person-info-r .base-info-form p i.data-icon1{
    background-position: -100px -120px;
}
.grid-info .person-info-r .base-info-form p i.data-icon2{
    background-position: 0 -170px;
}
.grid-info .person-info-r .base-info-form p input{
    display: inline-block;
    width: 300px;
    height: 36px;
    font-size: 14px;
    line-height: 36px;
    text-align: left;
    border: 1px solid #ddd;
    background: #fbfbfb;
    -moz-box-shadow: inset 0 1px 1px #dedde1;
    -webkit-box-shadow: inset 0 1px 1px #dedde1;
    box-shadow: inset 0 1px 1px #dedde1;
    color: #777;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    text-indent: 10px;
    position: absolute;
    left: 54px;
}
.grid-info .person-info-r .base-info-form p .sub-btn{
    width: 150px;
    height: 40px;
    background: #de1e30;
    border: none;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    text-indent: 0;
    letter-spacing: 8px;
    float: left;
    margin-left: 55px;
}
.change-warn{
    display: block;
    margin-left: 125px;
    margin-bottom: 10px;
}
.list-data .change-warn{
    margin-left: 55px;
}
.change-img .change-warn{
    margin-left: 35px;
}
.change-img .pic-btn{
    width: 700px;
    height: 40px;
    position: absolute;
    float: left;
    top: 400px;
}
.change-img .pic-btn .up-file{
    width: 150px;
    height: 40px;
    border: 1px solid #eee;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    float: left;
    margin-left: 30px;
    background: #de1e30;
    color: #fff;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
}
.grid-info  form{
    margin-left: 100px;
}
.grid-info  p{
    display: block;
    width: 550px;
    height: 42px;
    overflow: hidden;
    margin-bottom: 30px;
    font-size: 16px;
}
.grid-info  p label{
    display: inline-block;
    width: 100px;
    height: 40px;
    line-height: 40px;
    text-align: right;
    margin-right: 20px;
    font-size: 16px;
    font-weight: normal;
}
.grid-info  p input{
    display: inline-block;
    width: 336px;
    height: 34px;
    background: #fbfbfb;
    -moz-box-shadow: inset 0 1px 1px #dedde1;
    -webkit-box-shadow: inset 0 1px 1px #dedde1;
    box-shadow: inset 0 1px 1px #dedde1;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    line-height: 34px;
    text-align: left;
    border: 1px solid #ddd;
    text-indent: 10px;
}
.grid-info p .submit{
    display: block;
    width: 146px;
    height: 38px;
    background: #de1e30;
    border: 0;
    font-size: 16px;
    text-align: center;
    line-height: 38px;
    color: #fff;
    letter-spacing: 10px;
    text-indent: 0;
    margin-left: 120px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.change-iphone p .submit{
    display: block;
    width: 146px;
    height: 38px;
    background: #de1e30;
    border: 0;
    font-size: 16px;
    text-align: center;
    line-height: 38px;
    color: #fff;
    letter-spacing: 10px;
    text-indent: 0;
    margin-left: 120px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.change-iphone{
    position: relative;
}
.change-iphone .veri-code{
    width: 80px;
    height: 30px;
    position: absolute;
    left: 478px;
    top: 128px;
    font-size: 12px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}
.change-iphone button:hover{
    background: #de1e30;
    color: #fff;
}
.menu_block a i{
    display: inline-block;
    width: 25px;
    height: 25px;
    background: url("/images/articles/ziliao.png")no-repeat;

}
.menu_recharge a i{
    display: inline-block;
    width: 25px;
    height: 25px;
    background: url("/images/articles/icons-recharge.png")no-repeat;

}
.admin a i{
    background: url("/images/articles/ziliao.png")no-repeat;
    background-size: 100%;
}
.article-manage a i{
    background: url("/images/articles/wen.png")no-repeat;
    background-size: 100%;
}
.article-colle a i{
    background: url("/images/articles/shoucang.png")no-repeat;
    background-size: 100%;
}
.article-publi a i{
    background: url("/images/articles/fa.png")no-repeat;
    background-size: 100%;
}
.admin_change_img a i{
    background: url("/images/articles/tou.png")no-repeat;
    background-size: 100%;
}
.article-recommend a i{
    background: url("/images/articles/jian.png")no-repeat;
    background-size: 100%;
}

.change_main_img{
    font-size: 14px;
}
.change_main_img .submit{
    width: 150px;
    height: 40px;
    background: #de1e30;
    border: none;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    text-indent: 0;
    float: left;
    margin-left: 100px;
    margin-top: 50px;
}
.change_main_img input.submit{
    margin:40px 0 0;
}
.change_main_img input{
    height: 30px;
    display: inline-block;
}
.change_main_img form{
    margin-left: 100px;
}
.recomm-head{width: 800px}
.recomm-head div{display: inline-block;width: 395px;height: auto;text-align: left;margin-bottom: 10px}
.recomm-head div.team{float: left;position: relative}
.recomm-head div.team .btn_addPic_hidden{
    display: block;
    position: relative;
    width: 140px;
    height: 140px;
    overflow: hidden;
    color: #999999;
    cursor: pointer;
    text-align: center;
    background-size: 100% 100%;
    margin: -31px 0 0 80px;
    border: 1px solid #e0e0e0;
}
.recomm-head div.team .btn_addPic_hidden img{
    width: 100%;
    height: 100%;
}
.recomm-head div label{display: inline-block;
    width: 70px;
    height: 40px;
    line-height: 40px;
    text-align: right;
    font-size: 16px;
    font-weight: normal;
    color: #808080;
}
.ream{float: left}
.recomm-head div>input{
    display: inline-block;
    width: 250px;
    height: 35px;
    background: #fbfbfb;
    -moz-box-shadow: inset 0 1px 1px #dedde1;
    -webkit-box-shadow: inset 0 1px 1px #dedde1;
    box-shadow: inset 0 1px 1px #dedde1;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    text-align: left;
    border: 1px solid #ddd;
    text-indent: 10px;
}
.btn_addPic{
    display: block;
    position: relative;
    width: 140px;
    height: 140px;
    overflow: hidden;
    color: #999999;
    cursor: pointer;
    text-align: center;
    background:url(/images/articles/tpsc.png);
    background-size: 100% 100%;
    margin: 5px 0 0 32px;
}
.filePrew {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 100px; /* 增大不同浏览器的可点击区域 */
    opacity: 0; /* 实现的关键点 */
    filter:alpha(opacity=0);/* 兼容IE */
}


.recomm-head div>input.name{
    display: block;
    margin-left: 74px;
    margin-top: 10px;
}
.recomm-head div .sc-img{
    width: 300px;
    display: inline-block;
    position: relative;
}
.recomm-head div .sc-img #xmTanImg{
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: absolute;
    left: 57px;
    top: -11px;
}
.recomm-head div .sc-img1{
    width: 300px;
    display: inline-block;
    position: relative;
}
.recomm-head div .sc-img1 #xmTanImg1{
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: absolute;
    left: 57px;
    top: -9px;
    border: none;
}
.recomm-head div img[src=""],img:not([src]){
    opacity:0;
}


</style>
<script type="text/javascript">
	
	<!-- 2.设置全局ajax选项 -->
	$.ajaxSetup({
		headers:{
			'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
		}
	});
	
	// 获取 token
	var _token = $('meta[name="csrf-token"]').attr('content');
	
	var mytime = null;	//用于何时开始倒计时
	var total = 3;  	// 3秒倒计时	
	// 倒计时
	function clock(){
		if( total==0 )
		{
			location.href="{{ url('/recommendgame') }}";
		}
		$("#second").html( total+'秒后为您跳转页面,也可点击链接进行');
		total--; 
		mytime=setTimeout("clock()",1000);
		
	}
	
	// 创建 赛事推荐
	function createRecommend( status )
	{
		
		// 主队名称
		var home =	$("input[ name='home' ]").val();
		// 主队指数
		var home_index	=	$("input[ name='home_index' ]").val();
		// 主队图片
		var home_pic =	$("#img_home_pic").attr('realpath');
		// 客队名称
		var away =	$("input[ name='away' ]").val();
		// 客队指数
		var away_index	=	$("input[ name='away_index' ]").val();
		// 客队图片
		var away_pic =	$("#img_away_pic").attr('realpath');
		// 平指数
		var p_index	=	$("input[ name='p_index' ]").val();
		// 比赛日期
		var match_date	=	$("input[ name='match_date' ]").val();
		// 资讯
		var content = ue.getContent();
		// 复选框 
		var checkbox =	$("input[name='checkbox']:checked");
		var box_str = '';
		checkbox.each(function(){
			box_str += $(this).val()+',';
		});
		
		// 创建
		var url = "{{ url('/recommendDo') }}";
		$.ajax({ 
			type : 'post', 
			url : url, 
			data:{home:home,home_index:home_index,home_pic:home_pic,away:away,away_index:away_index,away_pic:away_pic,p_index:p_index,match_date,match_date,content:content,status:status,checkbox:box_str,_token:_token},
			async:true,    					
			dataType:"json",
			success:function(back){ 
				
				// 遮罩层 显示
				if( back['show_info']=='发表成功,审核通过后即可显示' || back['show_info']=='文章编辑成功,审核通过后即可显示' ||  back['show_info']=='已存入草稿箱' )
				{
					// 按钮 失效
					$("#btn1,#btn2").attr('disabled',true);
					$("#info-succ").html('');
					$("#info-succ").html( back['show_info'] );
					$("#alertBtn,#alert-zhe").show();
					if( mytime==null )
					{
						//开始倒计时
						clock(); 
					}		
					
				}else
				{
					// 2.模态框 不要动
					$('.err_edit').html( '' );
					$('.err_edit').html( back['show_info'] );
					$(".err_edit").slideDown(1000);
					$(".err_edit").delay(1500).slideUp(1000);
				
				}
				
				
			}
		
		});
			
	}	
	
	// 提交 图片表单
	function formSubmit(id)
	{
		$("#"+id).submit();
	}
	
	// 显示错误
	function showerror(info)
	{
		$(".err_edit").html('');
		$(".err_edit").html(info);
		$(".err_edit").slideDown();
		setTimeout(function(){
			$(".err_edit").slideUp();
		},2000)
	}
	
	// 显示 上传后的图片
	function showPic(picUrl,id,filename)
	{ 
		// 清空
		$("#"+id).attr('src','');
		// 输出图片
		$("#"+id).attr('src',picUrl);
		$("#"+id).attr('realpath',filename);
		// 显示
		$("#"+id).css('display','block');
	}
	
	

</script>
</head>
<body style="background:#fff">

<!--面包屑导航-->
<div style="width: 1200px;height: 40px;line-height:40px;position: relative;margin: 110px auto 0">
    <ol style="float: left;overflow: hidden;color: #333;list-style: none;">
        <li style="float: left;margin-left: 5px">当前位置：</li>
        <li style="float: left;margin-left: 5px"><a href="{{ url('/') }}" style="color: #de1e30;margin-left: 5px">首页</a></li>
		<li style="float: left;margin-left: 5px"><a href="{{ url('/personNal') }}" style="color: #de1e30;margin-left: 5px">>
        个人中心</a></li>
        <li style="float: left;margin-left: 5px">> 发表文章</li>
    </ol>
</div>
<div class="wrap" style="margin-top:10px">
	<!--发文，管理标题-->
    <div class="left_menu">
        <div class="menu_block admin" >
            <a href="{{ url('/personNal') }}" class="menu_article">
                <i></i>
                我的资料
            </a>
			
        </div>
		<div class="menu_block admin_change_img">
            <a href="{{ url('/changuserpic') }}" class="menu_article">
                <i></i>
                修改头像
            </a>
			
        </div>
		<div class="menu_block admin-focus">
            <a href="{{ url('/myfans') }}" class="menu_article">
                <i></i>
                我的关注
            </a>
        </div>	
		<div class="menu_block article-manage">
			<a href="{{ url('/articleManage') }}" class="menu_article">
				<i></i>
				文章管理
			</a>
		</div>
		<div class="menu_block menu_recharge">
            <a href="{{ url('/recharge') }}" class="menu_article">
                <i></i>
                充值中心
            </a>
        </div>
		<div class="menu_block menu_recharge">
            <a href="{{ url('/recharge_record') }}" class="menu_article">
                <i></i>
                充值记录
            </a>
        </div>
		<div class="menu_block article-colle">
			<a href="{{ url('/mycollect') }}" class="menu_article">
				<i></i>
				我的收藏
			</a>
		</div>
        <div class="menu_block article-publi">
            <a href="{{ url('/new_article') }}" class="menu_article">
                <i></i>
                发表文章
            </a>
        </div>
		<div class="menu_block article-recommend" style="background:#eee">
            <a href="{{ url('/new_article') }}" class="menu_article">
                <i></i>
                竞彩推荐
            </a>
        </div>
    </div>
    
	
	<!--发文，管理内容-->
    <div class="right_main">    
		<!--发文-->
        <!--发文-->
        <div class="article_main right_body" id="main2" style="display:block;" >
            
			<div class="pagelet-write">
                <a href="#" class="page_tab">竞彩推荐</a>
            </div>
            
			<div class="edit_body">
               	<!-- 主客队、日期 -->
				<div class="recomm-head" class="ream">
					<!--客队-->
					<div  class="team">
						<label for="">主队</label>
						<input type="text" name="home"  placeholder="请输入队名">
						<input type="text" name="home_index"  placeholder="请输入指数"  class="name">
						
						<iframe name="myhost" style="display:none;"></iframe>
						<!-- 图片上传 -->
						<form action="{{ url('/teampicture') }}" class='btn_addPic' target="myhost" enctype="multipart/form-data" method="post" id="home_pic" style="width:40px;height:40px;" >
							{{ csrf_field() }}
							<input name="home_pic" onchange="formSubmit('home_pic');" type="file" class='filePrew' style="cursor:pointer;" accept="image/gif, image/jpeg, image/png" />
						</form>
						<div class='btn_addPic_hidden'>
							<img  style="display:none;" realpath='' id="img_home_pic" src="{{ asset('/images/logo.jpg') }}" />
						</div>
					</div>
					<!--客队-->
					<div class="team">
						<label for="">客队</label>
						<input type="text" name="away" placeholder="请输入队名">
						<input type="text" name="away_index"  placeholder="请输入指数"  class="name">
						<!--图片上传-->
						<iframe name="myaway" style="display:none;"></iframe>
						<form class='btn_addPic' action="{{ url('/teampicture') }}/2" target="myaway" enctype="multipart/form-data" method="post" id="away_pic" style="width:40px;height:40px;">
							{{ csrf_field() }}
							<input type="file" onchange="formSubmit('away_pic');" name="away_pic" class='filePrew' style="cursor:pointer;" accept="image/gif, image/jpeg, image/png"  />
						</form>
						<div class='btn_addPic_hidden'>
							<img  style="display:none;" realpath='' id="img_away_pic" src="{{ asset('/images/logo.jpg') }}" />
						</div>
					</div>
					<!--平-->
					<div>
						<label for="">平</label>
						<input type="text" name="p_index" placeholder="请输入">
					</div>
					<!--日期-->
					<div>
						<label for="">日期</label>
						<input type="text" name="match_date" id="datetimepicker"/>
					</div>
					
				</div>
               	<!-- 资讯内容 -->
				<div class="edit_main container" style="display:block">
					<div class="err_edit" style="display:none"></div>
					<!-- 资讯内容 -->
					<div  class="form-group">
						<div class="col-sm-10">
							<!-- 加载编辑器的容器 -->
							<script id="container" name="content"  style='height:260px;width:796px;margin-left:-30px;' type="text/plain">{!! $article_info->content or '' !!}</script>
							<!-- 配置文件 -->
							<script type="text/javascript" src="{{ asset('/js/uedit/ueditor.config.js') }}"></script>
							<!-- 编辑器源码文件 -->
							<script type="text/javascript" src="{{ asset('/js/uedit/ueditor.all.js') }}"></script>
							<!-- 实例化编辑器 -->
							<script type="text/javascript">
								var ue = UE.getEditor('container',{ 
									toolbars: [
										[
											'indent', //首行缩进
											'undo', //撤销
											//'bold', //加粗
											'horizontal', //分隔线
											'time', //时间
											'date', //日期
											'fontfamily', //字体
											'fontsize', //字号
											//'forecolor',
											'simpleupload', //单图上传
											// 'insertimage', //多图上传
											'justifyleft', //居左对齐
											'justifyright', //居右对齐
											'justifycenter', //居中对齐
											'justifyjustify', //两端对齐
											'insertorderedlist', //有序列表
											'insertunorderedlist', //无序列表
											'fullscreen', //全屏
										]
									]
									
								});
								
							</script>
						</div>
						
					</div>
					

                </div>
				 <div class="qb_class">
						<p>赛事预测:	</p>
						<p><input type="checkbox" name="checkbox" value="1" />主胜</p>
						<p><input type="checkbox" name="checkbox" value="2" />平</p>
						<p><input type="checkbox" name="checkbox" value="3" />客胜</p>
					</div>
				<!--按钮-->
				<div class="edit_rele pull-right">
					<br/>
					@if( isset($new_recommend->id) )
						<button  style="width:150px;" onclick="createRecommend(2)" id="btn1" class="btn btn-danger reply_btn">
						发表
						</button>
						<button  style="width:150px;" onclick="createRecommend(1)" id="btn2" class="btn btn-default">
						存 草 稿
						</button>
					@else
						<button  style="width:150px;" onclick="createRecommend(2)" id="btn1" class="btn btn-danger reply_btn">
						发 表
						</button>
						<button  style="width:150px;" onclick="createRecommend(1)" id="btn2" class="btn btn-default">
						存 草 稿
						</button>
					@endif
					
					
				</div>
				
				<!--发布 成功 弹框-->
                <div class="alert-info" id="alertBtn" style="background:#fff">
                    <div>信息提示</div>	
                    <p class="info-succ" id="info-succ" ></p>
                    <p><span id="second" >3秒后为您跳转页面,也可点击链接进行</span> <a href="{{ url('/recommendgame') }}"> 跳转</a></p>
                </div>
                <span id="alert-zhe"><span>
				
				
			</div>
        </div>

	</div>

</div>

		
<div id="article" ></div>

<script>
    //限制 checkbox的 选中个数
    $(document).ready(function(){
        $('input[type=checkbox]').click(function() {
            $("input[name='checkbox']").attr('disabled', true);
            if ($("input[name='checkbox']:checked").length >= 2) {
                $("input[name='checkbox']:checked").attr('disabled', false);
            } else {
                $("input[name='checkbox']").attr('disabled', false);
            }
        });
    })
</script>

<script>
		$("#edit_tit").click(function(){
			if($(".edit_hide").css("display")=="none"){
				$(".edit_hide").slideDown(1500);
				
			}else{
				$(".edit_hide").slideUp(1000);
			}
		});
		
		//设置时间
        $.datetimepicker.setLocale('en');
		var mydate = new Date();
        $('#datetimepicker').datetimepicker({
            dayOfWeekStart : 1,
            lang:'en',
            disabledDates:['1986/01/08','1986/01/09','1986/01/10'],
            startDate:	'mydate',
			minDate:'mydate',
        });
        $('#datetimepicker').datetimepicker({value:'mydate',step:10});

        $('.some_class').datetimepicker();
        var logic = function( currentDateTime ){
            if (currentDateTime && currentDateTime.getDay() == 6){
                this.setOptions({
                    minTime:'11:00'
                });
            }else
                this.setOptions({
                    minTime:'8:00'
                });
        };
</script>


</body>
@extends('common.footer')